<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html" indent="yes"/>
    <xsl:template match="/">
        <div class="nb_objets">
            <xsl:value-of select="count(//product)" /> objets
        </div>
        <div class="nb_objets_border"></div>
        <ul class="objets">
            <xsl:for-each select="//product">
                <li>
                    <xsl:value-of select="concat(name, ' (', quantity, ' x ', price, ' ', price/@currency, ')')" />
                </li>
            </xsl:for-each>
        </ul>

        <div class="total">Total</div>
        <span class="prix"><xsl:value-of select="concat(/cart/total, ' ', /cart/total/@currency, ' ')" /> </span>
        <span class="tva">Tva incl.</span>
        <div class="nb_objets_border"></div>

        <div class="commander"><a href="../user/CartDetail.do">Commander</a></div>
    </xsl:template>
</xsl:stylesheet>
